﻿using System;
using System.Data;

namespace CodeGenerator
{
    public interface IDbObject
    {
        bool DeleteTable(string DbName, string TableName);
        int ExecuteSql(string DbName, string SQLString);
        DataTable GetColumnInfoList(string DbName, string TableName);
        DataTable GetColumnList(string DbName, string TableName);
        DataTable GetDBList();
        DataTable GetKeyName(string DbName, string TableName);
        string GetObjectInfo(string DbName, string objName);
        DataTable GetProcInfo(string DbName);
        DataTable GetProcs(string DbName);
        object GetSingle(string DbName, string SQLString);
        DataTable GetTabData(string DbName, string TableName, int TopNum);
        DataTable GetTables(string DbName);
        DataTable GetTablesInfo(string DbName);
        DataTable GetTabViews(string DbName);
        DataTable GetTabViewsInfo(string DbName);
        string GetVersion();
        DataTable GetVIEWs(string DbName);
        DataTable GetVIEWsInfo(string DbName);
        DataSet Query(string DbName, string SQLString);
        bool RenameTable(string DbName, string OldName, string NewName);

        string DbConnectStr { get; set; }

        string DbType { get; }
    }
}
